{% load static %}
<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据展示</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="{% static "users/bower_components/bootstrap/dist/css/bootstrap.min.css" %}">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{% static "users/bower_components/font-awesome/css/font-awesome.min.css" %}">
    <!-- Ionicons -->
    <link rel="stylesheet" href="{% static "users/bower_components/Ionicons/css/ionicons.min.css" %}">
    <!-- Theme style -->
    <link rel="stylesheet" href="{% static "users/dist/css/AdminLTE.min.css" %}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="{% static "users/dist/css/skins/_all-skins.min.css" %}">
    <link rel="stylesheet" href="{% static "users/dist/css/bootstrap-table.min.css" %}">
    <link rel="stylesheet" href="{% static "users/dist/member.css" %}">
    <link rel="stylesheet" href="{% static "users/dist/params.css" %}">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <style>
        .dataTables_filter > label {
            float: right;
        }
    </style>
</head>

<body class="hold-transition sidebar-mini">
<div class="wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            配置数据
        </h1>
        <ol class="breadcrumb">
            <li>
                <a href="#"><i class="fa fa-dashboard"></i>主页</a>
            </li>
            <li class="active">配置数据</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <table id="table1" class="table table-bordered nowrap" style="margin-bottom: 0">
            <tbody>
            <tr>
                <td class="model_key">模型名称</td>
                <td>{{ params.d_name }}</td>
                <td class="model_key">模型说明</td>
                <td colspan="3">{{ params.d_desc }}</td>
            </tr>
            <tr>
                <td class="model_key">配置模式</td>
                <td>{% if params.model_which == 0 %}
                    孤岛模式
                {% elif params.model_which == 1 %}
                    并网不上网
                {% elif params.model_which == 2 %}
                    并网上网
                {% endif %}</td>
                <td class="model_key">优化目标</td>
                <td>{% if params.opt_target == 0 %}经济性{% elif params.opt_target == 1 %}
                    能耗性{% endif %}</td>
                <td class="model_key">配置时间</td>
                <td>{{ params.time|date:'Y-m-d' }}</td>
            </tr>
            <tr>
                <td class="model_key">是否买气</td>
                <td>{% if params.model_buy_gas %}是{% else %}否{% endif %}</td>
                <td class="model_key">典型冬季日</td>
                <td>{{ params.winter_day }}</td>
                <td class="model_key">典型夏季日</td>
                <td>{{ params.summer_day }}</td>
            </tr>
            <tr>
                <td class="model_key">是否买热</td>
                <td>{% if params.model_buy_heat %}是{% else %}否{% endif %}</td>
            </tr>

            <tr>
                <td class="model_key">CCHP最大出力</td>
                <td colspan="2">{% if params.cchp_max_power == 0 %}无上限{% else %}
                    {{ params.cchp_max_power }}{% endif %}</td>
                <td class="model_key">吸收式制冷机型号</td>
                <td colspan="2">{{ params.ar_which }}</td>
            </tr>

            <tr>
                <td class="model_key">烟气热水机型号</td>
                <td colspan="2">{{ params.ars_which }}</td>
            </tr>
            <tr>
                <td class="model_key">内燃机型号</td>
                <td colspan="2">{{ params.ice_which }}</td>
                <td class="model_key">风机型号</td>
                <td colspan="2">{{ params.wind_which }}</td>
            </tr>

            <tr>
                <td class="model_key">燃气轮机型号</td>
                <td colspan="2">{{ params.gt_which }}</td>
                <td class="model_key">光伏型号</td>
                <td colspan="2">{{ params.solar_which }}</td>
            </tr>

            <tr>
                <td class="model_key">地源热泵型号</td>
                <td colspan="2">{{ params.gp_which }}</td>
                <td class="model_key">风冷热泵型号</td>
                <td colspan="2">{{ params.ap_which }}</td>
            </tr>
            <tr>
                <td class="model_key">地源热泵最大出力</td>
                <td colspan="2">{% if params.gp_max_power == 0 %}无上限{% else %}
                    {{ params.gp_max_power }}{% endif %}</td>
                <td class="model_key">风冷热泵最大出力</td>
                <td colspan="2">{{ params.ap_max_power }}</td>
            </tr>
            <tr>
                <td class="model_key">燃气锅炉型号</td>
                <td colspan="2">{{ params.gb_which }}</td>
                <td class="model_key">电锅炉型号</td>
                <td colspan="2">{{ params.eb_which }}</td>
            </tr>
            <tr>
                <td class="model_key">燃气锅炉最大出力</td>
                <td colspan="2">{{ params.gb_max_power }}</td>
                <td class="model_key">电锅炉最大出力</td>
                <td colspan="2">{{ params.eb_max_power }}</td>
            </tr>
            <tr>
                <td class="model_key">蓄冷机组型号</td>
                <td>{{ params.cu_which }}</td>
                <td class="model_key">冰蓄冷最大容量</td>
                <td>{{ params.ice_storage_max_capacity }}</td>
                <td class="model_key">充能功率</td>
                <td>{{ params.heat_storage_max_powerch }}</td>
            </tr>
            <tr>
                <td class="model_key">蓄冰槽型号</td>
                <td>{{ params.it_which }}</td>
                <td class="model_key">冰蓄冷最大功率</td>
                <td>{{ params.ice_storage_max_capacity }}</td>
                <td class="model_key">放能功率</td>
                <td>{{ params.heat_storage_max_powerdis }}</td>
            </tr>
            <tr>
                <td class="model_key">储热最大容量</td>
                <td>{{ params.heat_storage_max_capacity }}</td>
            </tr>
            </tbody>
        </table>
        <button id="btn_back" type="button" class="btn btn-primary" style="float: right">返回</button>
    </section>

</div>

<!-- jQuery 3 -->
<script src={% static "users/bower_components/jquery/dist/jquery.min.js" %}></script>
<!-- Bootstrap 3.3.7 -->
<script src={% static "users/bower_components/bootstrap/dist/js/bootstrap.min.js" %}></script>
<!-- FastClick -->
<script src={% static "users/bower_components/fastclick/lib/fastclick.js" %}></script>
<!-- AdminLTE App -->
<script src={% static "users/dist/js/adminlte.min.js" %}></script>
<!-- AdminLTE for demo purposes -->
<script src="{% static 'users/bower_components/datatables.net/js/jquery.dataTables.min.js' %}"></script>
<script src="{% static 'users/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js' %}"></script>

<script>
    $("#btn_back").click(function () {
        history.go(-1);
    });
</script>

</body>

</html>